//************************************************
//  *Author：jxx
//  *QQ：283591387
//  *代码由框架生成,任何更改都可能导致被代码生成器覆盖
//  *业务请在q_client.js中编写
//************************************************
export default function () {
	return {
		editFormFields: {
			Client_no: '',
			Client_name: '',
			Client_type: '',
			Client_flag: '',
			Client_acct_back: '',
			Client_acct_no: '',
			Client_tax_no: '',
			Client_man: '',
			Position: '',
			Client_email: '',
			Client_tel: '',
			Province: '',
			City: '',
			District: '',
			Client_addr: '',
			Zip: '',
			Client_fax: '',
			Display_flag: '',
			Credit_amt: '',
			Remark: '',
			Image: '',
			Character: '',
			Scale: '',
			khfzr:''
		},
		editFormOptions: [
			{ title: '客户编号', field: 'Client_no', disabled: true },
			{ title: '客户名称', required: true, field: 'Client_name' },
			{ key: '客户标志', data: [], title: '客户标志', required: true, field: 'Client_flag', type: 'select' },
			{ key: '客户类型', data: [], title: '客户类型', required: true, field: 'Client_type', type: 'select' },
			{ key: '客户规模', data: [], title: '客户规模', required: true, field: 'Scale', type: 'select' },
			{ key: '信用等级', data: [], title: '信用等级', required: true, field: 'Credit_amt', type: 'select' },
			{ key: '用户', data: [], title: '客户负责人', required: true, field: 'khfzr', type: 'select' },
			{ type: 'group' },
			{ title: '开户银行', field: 'Client_acct_back' },
			{ title: '银行账户', field: 'Client_acct_no' },
			{ title: '税务登记号', field: 'Client_tax_no' },
			{ type: 'group' },
			{ title: '邮件地址', field: 'Client_email' },
			{ title: '联系人', field: 'Client_man', required: true },
			{ title: '联系人职位', field: 'Position', required: true },
			{ title: '电话', field: 'Client_tel', required: true },
			{ type: 'group' },
			{ key: '省', data: [], title: '省', field: 'Province', type: 'select', required: true },
			{ key: '省', data: [], title: '市', field: 'City', type: 'select', required: true },
			{ key: '省', data: [], title: '区', field: 'District', type: 'select', required: true },
			{ title: '地址', field: 'Client_addr' },
			{ type: 'group' },
			{ key: '往来标志', data: [], title: '往来标志', required: true, field: 'Display_flag', type: 'select' },
			{ title: '传真', field: 'Client_fax' },
			{ key: '客户性质', data: [], title: '客户性质', field: 'Character', type: 'select', required: true },
			{ title: '邮编', field: 'Zip' },
			{ type: 'group' },
			{ field: 'Image', title: '图片', type: 'img' },
			{ title: '备注', field: 'Remark', type: 'textarea' },
		],
		searchFormFields: { Client_no: '', Client_name: '', Client_type: '', Client_flag: '', Scale: '', Character: '', Province: '', City: '', District: '', AuditStatus: '',khfzr:'' },
		searchFormOptions: [
			{ title: '客户编号', field: 'Client_no', type: 'like' },
			{ title: '客户名称', field: 'Client_name', type: 'like' },
			{ key: '客户类型', data: [], title: '客户类型', field: 'Client_type', type: 'select' },
			{ key: '客户标志', data: [], title: '客户标志', field: 'Client_flag', type: 'select' },
			{ key: '客户规模', data: [], title: '客户规模', field: 'Scale', type: 'select' },
			{ key: '客户性质', data: [], title: '客户性质', field: 'Character', type: 'select' },
			{ key: 'audit', data: [], title: '审核状态', field: 'AuditStatus', type: 'select' }
		],
		columns: [
			{ field: 'Client_no', title: '客户编号', type: 'string', readonly: true },
			{ field: 'Client_name', title: '客户名称', type: 'string', link: true },
			{ field: 'Client_type', title: '客户类型', type: 'int', bind: { key: '客户类型', data: [] } },
			{ field: 'Client_flag', title: '客户标志', type: 'string', bind: { key: '客户标志', data: [] } },
			{ field: 'Scale', title: '客户规模', type: 'string', bind: { key: '客户规模', data: [] } },
			{ field: 'Character', title: '客户性质', type: 'string', bind: { key: '客户性质', data: [] } },
			{ field: 'Client_man', title: '联系人', type: 'string' },
			{ field: 'Position', title: '联系人职位', type: 'string' },
			{ field: 'Province', title: '省', type: 'string', bind: { key: '省', data: [] } },
			{ field: 'City', title: '市', type: 'string', bind: { key: '省', data: [] } },
			{ field: 'District', title: '区', type: 'string', bind: { key: '省', data: [] } },
			{ field: 'Client_addr', title: '地址', type: 'string' },
			{ field: 'Zip', title: '邮编', type: 'string' },
			{ field: 'Client_email', title: '邮件地址', type: 'string' },
			{ field: 'Client_tel', title: '电话', type: 'string' },
			{ field: 'Client_fax', title: '传真', type: 'string' },
			{ field: 'Client_acct_back', title: '开户银行', type: 'string' },
			{ field: 'Client_acct_no', title: '银行账户', type: 'string' },
			{ field: 'Client_tax_no', title: '税务登记号', type: 'string' },
			{ field: 'Display_flag', title: '往来标志', type: 'int', bind: { key: '往来标志', data: [] } },
			{ field: 'Credit_amt', title: '信用等级', type: 'int', bind: { key: '信用等级', data: [] } },
			{ field: 'Credit_quota', title: '信誉额度', type: 'decimal' },
			{ field: 'Image', title: '图片', type: 'img' },
			{ field: 'Remark', title: '备注', type: 'string' },
			{ field: 'AuditStatus', title: '审核状态', type: 'int', bind: { key: 'audit', data: [] } },
			{ field: 'Creator', title: '创建人员', type: 'string' },
			{ field: 'khfzr', title: '客户负责人', type: 'int', bind: { key: '用户', data: [] } },
		],
		table: {
			key: 'Client_id',
			footer: 'Foots',
			cnName: '客户信息',
			name: 'q_client',
			url: '/q_client/',
			sortName: 'Client_no'
		}
	};
}
